<template>
    <div class="clearFix">
      <input
        readonly='readonly'
        class="keyWord"
        @click="showListHandle"
        :value='title'
      />
      <input type="button" value="GO">
      <span></span>
    </div>
</template>

<script>

  import {mapState,mapGetters,mapActions,mapMutations} from 'vuex'

export default {

  props:[

    'isShow',
  ],
  computed:{

      initShow(){

        return this.isShow;

      },

      title(){

         return this.$store.state.selectModule.title;
      }

  },
  methods:{

    showListHandle(){
      //update是vue给我们写好的方法，showListHandle触发后，update方法执行，更新is-show属性的值
      this.$emit("update:isShow",!this.initShow);
    }

  }



}
</script>
